<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="${resource(dir:'css',file:'buttons.css')}" />
    <link rel="stylesheet" href="${resource(dir:'css',file:'buttons.css')}" />



    
    <link rel="stylesheet" href="${resource(dir:'lib',file:'style_1.css')}"/>

    <link rel="shortcut icon" href="${resource(dir:'lib',file:'favicon.png')}" type="image/x-icon" />
  <tooltip:resources/>
  <title>TvMAGAzine Plus</title>
  <tooltip:resources/>


</head>

<body>
<g:render id="" template="/layouts/menu"/>


<div id="alerts" style="color:white;padding-left: 200px;padding-top:10px;overflow-x:auto">
  <h3 style="font-size: 40px;color:white">TvMagazinePlus Alertas</h3><br><br>
  <g:form controller="teste" action="saveProfile">
  <div id="alertass">

    <div style="background-color: black;padding-top:15px;padding-bottom:15px;padding-left:15px;width:600px">

      <b style="font-weight:bold;">Name: </b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<g:textField name="name" value="${userInstance.name}" style="width: 200px" /> <br><br>
      
      <g:eachError bean="${userInstance}" field="name">
          <p style="color:red">&nbsp;&nbsp;&nbsp;&nbsp;<g:message error="${it}"/></p>
        </g:eachError>
      
      <b style="font-weight:bold;">Phone Number:</b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<g:textField name="phoneNumber" value="${userInstance.phoneNumber}" style="width: 200px"/> <br><br>

      <g:eachError bean="${userInstance}" field="phoneNumber">
          <p style="color:red">&nbsp;&nbsp;&nbsp;&nbsp;<g:message error="${it}"/></p>
        </g:eachError>

      <b style="font-weight:bold;">Email:</b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<g:textField name="email" value="${userInstance.email}" style="width: 200px"/>
      <br/></br>
      
            <g:eachError bean="${userInstance}" field="email">
          <p style="color:red">&nbsp;&nbsp;&nbsp;&nbsp;<g:message error="${it}"/></p>
        </g:eachError>
      
      <b style="font-weight:bold;">Username: </b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<g:textField name="username" value="${userInstance.username}" style="width: 200px"/> <br><br>

            <g:eachError bean="${userInstance}" field="username">
          <p style="color:red">&nbsp;&nbsp;&nbsp;&nbsp;<g:message error="${it}"/></p>
        </g:eachError>
      
      <b style="font-weight:bold;">SecretQuestion: </b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<g:select name="secretQuestion.id" from="${tv_megazineplus.SecretQuestion.list()}" optionKey="id" value="${userInstance.secretQuestion}"/>
      <br><br>
      <b style="font-weight:bold;">Answer: </b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<g:textField name="hashAnswer" value="${}" style="width: 200px"/> <br><br>

            <g:eachError bean="${userInstance}" field="hashAnswer">
          <p style="color:red">&nbsp;&nbsp;&nbsp;&nbsp;<g:message error="${it}"/></p>
        </g:eachError>
      
      <ui style="color:green"></b><center>[If you do not want to change password, leave blank]</center></b></ui><br/><br/>
      <b style="font-weight:bold;">Password: </b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

      <input type="password" name="hashPassword" value="${}" style="width: 200px"/><br><br>
      
      <g:eachError bean="${userInstance}" field="hashPassword">
          <p style="color:red">&nbsp;&nbsp;&nbsp;&nbsp;<g:message error="${it}"/></p>
        </g:eachError>
      <div class="message"><p style="color:red"><g:message code="${flash.message}"/></p></div>
      <b style="font-weight:bold;">Repeat Pw: </b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
       <input type="password" name="hashPassword2" value="${}" style="width: 200px"/><br><br>
      
      <g:checkBox name="fb" value="${fb.postMural}"/> 
      <b style="font-weight:bold;">Allow post Facebook: </b>&nbsp;&nbsp;
      
      <center>
      <g:submitButton name="add" value="Save" class="button small blue" style="width:100px"/><br/><br/>
      </center>
    </div>
    <br><br>

  </div>

</div><!-- end wrapper1 -->

</g:form>

</body>
</html>
